package switchviz.core.data;

public class OIDDataPair 
{
	private Object _object;
	private String _oid;
	
	public OIDDataPair()
	{
		
	}
	
	public OIDDataPair(Object object, String oid)
	{
		this.setObject(object);
		this.setOid(oid);
	}
	
	public Object getObject() 
	{
		return _object;
	}
	
	public void setObject(Object object) 
	{
		this._object = object;
	}
	
	public String getOid() 
	{
		return _oid;
	}
	
	public void setOid(String oid) 
	{
		this._oid = oid;
	}
	
	public String getPort()
	{
		return _oid.substring(_oid.lastIndexOf('.') + 1);
	}
	
}
